{% for entity in entities %}
<div class="entry blogentry">
    <h2><a href="">{{ entity | capitalize }}</a></h2>
    <div class="post-box">
    {% if entity.getWebPath() %}
        <img class="rounded" src="{{ entity.getWebPath() }}" alt='{{ entity }}' class="rounded" width='100%' height='270' />
    {% endif %}
    </div>
    <p>
        {{ entity.content | raw }}
        <span class="read-more">
            <a href="{% if type == 0 %}{{ url('partner_show', {'id': entity.id}) }}{% else %}{{ url('technology_show', {'id': entity.id}) }}{% endif %}">Read more »</a>
        </span>
    </p>
</div>
{% else %}
<p class="notice">Nothing Found</p>
{% endfor %}

<div class="big-spacer"></div>

{% if lastPageNumber > 1 %}
<div class="paginator">
    <div class="pagingContainer">
        {% if page > 1 %}
            <a href="#" onclick="requestResults(1); return false;" class="first">First</a>
            <a href="#" onclick="requestResults({{ page - 1 }}); return false;">« Prev</a>
        {% endif %}
        <div>
            {% for numberOfPage in 1..lastPageNumber %}
                <a href="#" onclick="requestResults({{ numberOfPage }}); return false;" class="
                {% if (numberOfPage == lastPageNumber) and (numberOfPage == page) %}
                last
                {% elseif (numberOfPage == 1) and (numberOfPage == page) %}first{% endif %}
                {% if numberOfPage == page %}
                    active{% endif%}">{{ numberOfPage }}</a>

            {% endfor %}
        </div>
        {% if page < lastPageNumber %}
            <a href="#" onclick="requestResults({{ page + 1 }}); return false;">Next »</a>
            <a href="#" onclick="requestResults({{ lastPageNumber }}); return false;" class="last">Last</a>
        {% endif %}
    </div>
</div>
{% endif %}